

int factorial(int n)
{
	if(n == 1) return 1;
	else return n* factorial(n-1);
}

int factorial(float f)
{
	int n = (int)f;					//convert
	if(f > n) n++;					//round up if float value bigger than int value 
	if(n == 1) return 1;
	else return n* factorial(n-1);
}